#![no_std]
#![no_main]
#![feature(format_args_nl)]

use seminix_core::{cpu::read_cpuid_id, *};

mod head;

fn main(fdt: usize) {
    boards::seloader_board_init();
    println!("\nSeminix-loader started on {:#x}", read_cpuid_id());
    unsafe {
        extern "C" {
            static _text: usize;
            static _end: usize;
        }
        let start = &_text as *const usize as usize;
        let end = &_end as *const usize as usize;
        println!("  paddr=[{:#x}..{:#x}]", start, end - 1);
    }
    println!("  dtb={:#x}", fdt);
    loop {}
}
